package _12_lianxi;

import throwExample.NameLengthException;

public class Bank {
	public int m1(int balance) throws BalanceNullException {
		if (balance < 0) {
//			System.out.println("余额不足 ");
			throw new BalanceNullException("余额不足 ");
		}
		System.out.println("取款成功");
		return 1;
	}
}
